package com.example.saifly.inPageRecord.RecordModel;

import java.util.Date;

public class EnvironmentData extends EnvironmentDataKey {
    private Integer temperature;

    private Integer humidity;

    private Integer pm25;

    public EnvironmentData() {
    }

    public EnvironmentData(Date date, String patientPhone, Integer temperature, Integer humidity, Integer pm25) {
        super(date, patientPhone);
        this.temperature = temperature;
        this.humidity = humidity;
        this.pm25 = pm25;
    }

    public boolean isNotNull() {
        if(this.temperature==0||this.humidity==0||this.pm25==0){
            return false;
        }
        return true;
    }

    public Integer getTemperature() {
        return temperature;
    }

    public void setTemperature(Integer temperature) {
        this.temperature = temperature;
    }

    public Integer getHumidity() {
        return humidity;
    }

    public void setHumidity(Integer humidity) {
        this.humidity = humidity;
    }

    public Integer getPm25() {
        return pm25;
    }

    public void setPm25(Integer pm25) {
        this.pm25 = pm25;
    }

    @Override
    public String toString() {
        return "EnvironmentData{" +
                "temperature=" + temperature +
                ", humidity=" + humidity +
                ", pm25=" + pm25 +
                ", date=" + date +
                ", patientPhone='" + patientPhone + '\'' +
                '}';
    }
}